#include "public.h"

ext void ISR_NonHandle(void)
{

}
ext void ISR_Eeprom(void)
{

}
ext void ISR_ADC(void)
{

}
ext void ISR_I2C(void)
{

}
ext void ISR_AWU(void)
{

}
ext void ISR_TLI(void)
{

}
ext void ISR_Trap(void)
{

}
ext void ISR_CLK(void)
{

}
ext void ISR_PortA(void)
{

}
ext void ISR_PortB(void)
{
#if  ENCODER_NUMBER>0
    if((PortB&0x80)!=(PB_IDR&0x80))
    {
        PortB &=~0x80;
        PortB |=(PB_IDR&0x80);
    	if(ENCODER_VOL_VALUE==0&&Encoder_Scan_Timer[0]==0)
        {
    		Panel_VolEncoder_Scan();
    	}
	}
#endif
#if  ENCODER_NUMBER>1
    else if((PortB&0x40)!=(PB_IDR&0x40))
    {
        PortB &=~0x40;
        PortB |=(PB_IDR&0x40);
        if(ENCODER_TUNE_VALUE==0&&Encoder_Scan_Timer[1]==0)
        {
#ifndef _DEBUG_SCAN_ENCODER
    		Panel_TuneEncoder_Scan();
#endif
    	}
	}
#endif
}
ext void ISR_PortC(void)
{
#ifdef NEW_MAINBOARD
    if(PinIn_RDSCLK)
        RDSInt();
#endif
}
ext void ISR_PortD(void)
{
#ifndef NEW_MAINBOARD
	if(PinIn_RDSCLK)
  		RDSInt();
#endif
}
ext void ISR_PortE(void)
{

}
ext void ISR_Can_Tx(void)
{

}

ext void ISR_Can_Rx(void)
{

}

ext void ISR_SPI(void)
{
	ISR_SPIRev();	
}
ext void ISR_Tim1_Other(void)
{

}

ext void ISR_Tim1_CC(void)
{

}
ext void ISR_Tim2_Other(void)
{

}
ext void ISR_Tim2_CC(void)
{

	if(TIM2_SR1_IC3IF)
    {
		TIM2_SR1_IC3IF=0;
	 	IR_Receive();
    }

}
ext void ISR_Tim3_Other(void)
{

}

ext void ISR_Tim3_CC(void)
{


}

ext void ISR_USART_Rx(void)
{

	 ISR_USART();

}
ext void ISR_USART_Tx(void)
{


}
ext void ISR_LinUART_Tx(void)
{


}
ext void ISR_LinUART_Rx(void)
{




}
ext void ISR_Tim4(void)
{
	 if(TIM4_SR)
    {
		TIM4_SR=0;

		if(T2ms_counter++&0x01==1)
        {
			if((nSchedulerTimer0&0x0f)<4)
				nSchedulerTimer0++;

			if((nSchedulerTimer1&0xf)<8)
				nSchedulerTimer1++;
			if((nSchedulerTimer2&0x3f)<32)
				nSchedulerTimer2++;
			F_4ms_Set;
			if(nSchedulerTimer1&0x01)
				F_8ms_Set;
        }
		F_2ms_Set;


    }

}

